from django.shortcuts import render
from django.http import HttpResponseRedirect as Response


# 首页
def index(request):
    session = request.session
    if not session.get('admin_user'):
        return render(request, 'storeAdmin/login.html')
    else:
        return render(request, 'storeAdmin/index.html')
